<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>表单美化</title>
    <style>
        input[type="text"]{
            outline: none;

        }
        textarea{
            resize: none;
            outline: none;
            overflow: auto;
            vertical-align:middle;      /*基线居中对齐*/
        }
    </style>
</head>
<body>
    <input type="text" maxlength="10" placeholder="请试试看吧">
    <textarea name="" id="" cols="30" rows="10" placeholder="最大可输入100字" maxlength="100"></textarea>
</body>
</html>